package com.allinpay.aipg.common;

public class FagRcretRsp {
	public static FagRcretRsp packRsp(FagRcretReq fagRcretReq, String agrmno, String errcode, String strMsg) {
		FagRcretRsp fagrcret = new FagRcretRsp();
		if (fagRcretReq != null) {
			if (errcode == null) errcode = "1000";
			fagrcret.setAGRMNO(agrmno);
			fagrcret.setRET_CODE(errcode);
			fagrcret.setERR_MSG(strMsg);
		} else {
			if (errcode == null) errcode = "1001";
			fagrcret.setAGRMNO(agrmno);
			fagrcret.setRET_CODE("1001");
			fagrcret.setERR_MSG(strMsg);
		}
		return fagrcret;
	}

	public String getRET_CODE() {
		return RET_CODE;
	}

	public void setRET_CODE(String rETCODE) {
		RET_CODE = rETCODE;
	}

	public String getERR_MSG() {
		return ERR_MSG;
	}

	public void setERR_MSG(String eRRMSG) {
		ERR_MSG = eRRMSG;
	}

	public String getAGRMNO() {
		return AGRMNO;
	}

	public void setAGRMNO(String AGRMNO) {
		this.AGRMNO = AGRMNO;
	}

	private String AGRMNO = "";
	private String RET_CODE = "";
	private String ERR_MSG = "";


}